package com.jodie.store.mapper;

import com.jodie.store.entity.Address;

import java.util.Date;
import java.util.List;

/**
 * 收货地址持久层接口
 * @author Jodie
 * @date 2023/2/9-19:39
 */
public interface AddressMapper {
    Integer insert(Address address);

    Integer countByUid(Integer uid);

    List<Address> findByUid(Integer uid);

    Address findByAid(Integer aid);

    Integer updateNonDefaultByUid(Integer uid);

    Integer updateDefaultByAid(Integer aid, String modifiedUser, Date modifiedTime);

    Integer deleteByAid(Integer aid);

    Address findLastModified(Integer uid);
}
